package src.com.zt.demo.interface_extends_demo.extends_demo;

public class pad extends Computer {
    String battery = "5000mA";

    public pad(){   //创建子类构造方法
        super();
        this.screen = super.getScreen();
    }

    void Start3G(){
        System.out.println("打开3G网络.....");
    }

/**  void showPicture(){ //在子类中重写父类方法
        super.showPicture();
        System.out.println("笔记本电脑，用手指点击");

    }*/





    String sayHello(){
        return super.sayHello() + "平板电脑";   //使用super关键字调用父类的结果
    }
}
